﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false"  CodeBehind="ObjEdit.aspx.cs" Inherits="CRS.Web.BaseData.ObjEdit" %>
<%@ Register Src="../UserControls/NavigateCtl.ascx" TagName="NavigateCtl" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/ObjHistoryListCtl.ascx" TagName="ObjHistoryListCtl"
    TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_self" />
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
    <link href="../ScriptFiles/CSS/style.css" type="text/css" rel="Stylesheet" />
    <script src="../ScriptFiles/JS/jquery.js" type="text/javascript"></script>
    <script src="../ScriptFiles/JS/PageRuleChecker.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        $(document).ready(function() {
            AddTip();
            $("body").append("<input id='" + errMsgId + "' type='hidden' value='' />");
            $("#btnEnter").click(function() {
                SetCtlCheck();
                var errMsg = $("#" + errMsgId);
                if (errMsg.val() != "") {
                    alert(errMsg.val());
                    return false;
                }
            });
        });

        function Check() {
            var a = $("#ObjPro_ImagePath_upImage");
            if (a.length == 0)
                return true;
            if (a.val() != "") {
                alert("请先上传图片");
                a.focus();
                return false;
               
            }
            return true;
        }

        function ClearInput() {
            var input = document.getElementsByTagName("input");
          for(var i=0;i<input.length;i++)
              if (input[i].type == "text") {
                  input[i].value = "";
          }
        }
    </script>

    <style type="text/css">

   </style>
</head>
<body id="master">
    <form runat="server">
    <div id="mainareacontent">
        <div class="mainarea">
            <table class="tableElse" width="100%" style="border: 1px solid #A8CFEB; margin-top: 2px;">
                <tr>
                    <td>
                    
                     <uc1:NavigateCtl ID="NavigateCtl1" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Menu ID="pgMenu" Orientation="Horizontal" StaticMenuItemStyle-CssClass="tab"
                            Font-Size="12px" StaticSelectedStyle-CssClass="selectedTab" CssClass="tabs" runat="server"
                            OnMenuItemClick="pgMenu_MenuItemClick">
                            <Items>
                            </Items>
                        </asp:Menu>
                    </td>
                </tr>
            </table>
            <div id="divBaseInfo" runat="server">
                <table  runat="server" id="tbOperater" style="border: 1px solid #A8CFEB; background-color: #F1F6FF; margin-top: 2px;width: 100%; font-size: 12px;">
                    
                    <tr>
                        <td colspan="2">
                            <asp:Button runat="server"  ID="btnEnter" Text="确定" OnClick="btnEnter_Click" OnClientClick="return Check()"
                                class="btn_mouseout" onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                                onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'" />&nbsp;&nbsp;
                            <asp:Button runat="server" ID="btnAdd" Text="添加" OnClick="btnAdd_Click" OnClientClick="return ClearInput();" class="btn_mouseout"
                                onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                                onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'" />&nbsp;&nbsp;
                            <asp:Button runat="server" ID="btnCancel" Text="返回" OnClick="btnCancel_Click" class="btn_mouseout"
                                onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                                onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'" />
                            &nbsp;&nbsp; 【<asp:Label ID="lblPageStateMemo" runat="server" Text="页面操作状态："></asp:Label>
                            <asp:Label runat="server" ID="lblPageState" ForeColor="DodgerBlue"></asp:Label>】
                        </td>
                    </tr>
                </table>
                <table id="table1" style="border: 1px solid #A8CFEB; background-color: #F1F6FF; margin-top: 4px;
                    width: 100%; margin-left: 0px" runat="server">
                </table>
            </div>
            <div id="divHisInfo" runat="server">
                <uc2:ObjHistoryListCtl ID="ctlHisInfo" runat="server" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
